<?php
    $value_data = '';
    if($settings->num_rows()>0){
        $row=$settings->row();
        $value_data = generate_pure_text($row->setting_info,'<p>','</p>');
    }
?>
<table class="titrepage" width="1000px">
    <tr><td> 
            <?php foreach($site_settings as $setting):?>             
                <a class="titrea" style="text-transform: uppercase;" href="<?php echo site_url('avis_admin/site_info').'/'.$setting['setting_name'];?>">
                <?php echo $setting['setting_name'].'  |  ';?></a>
                <?php endforeach;?>
        </td></tr>
    <form action="<?php echo site_url('avis_admin/save_settings').'/'.$row->setting_name;?>" method="post" />
    <tr>
        <td>
            <?php                                                                 
                $data = array(
                'name' => 'txtSettings',
                'id' => 'txtDes',
                'value'=>$value_data,
                'width' => '640',
                'height' => '400');
                echo form_fckeditor($data);
            ?>
        </td>
    </tr>
    <tr>
        <td><input type="submit" class="submit" value="SAVE"></td>
    </tr>
    <?php echo form_close();?>
</table>
